<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>Login</title>
    
    <link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
  </head>
  <body>
    <div id="loginWindow">
    <c:if test="${not empty param.authfailed}">
	    <span id="infomessage" class="errormessage" >
	    Login failed due to: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
	    </span>
	</c:if>
      <form action="/j_spring_security_check" method="post">
        <div class="row">
          <div class="label"><label for="j_username">Username:</label></div>
          <div class="value"><input name="j_username" type="text" /></div>
        </div>
        <div class="clear"></div>
       
        <div class="row">
          <div class="label"><label for="j_password">Password:</label></div>
          <div class="value"><input name="j_password" type="password" /></div>
        </div>
        <div class="clear"></div>
        
        <div class="row">
          <input class="right" id="button" type="submit" value="Login" />
        </div>
        <div class="clear"></div>
      </form>
    </div>
    <div id="openidWindow">
    	<h2>Login using OpenID</h2>
    	<form action="j_spring_openid_security_check" method="POST">
    		<label for="openid_identifier">Enter OpenID identifier:
    			<input name="openid_identifier" type="text" />
    		</label>
    		<input type="submit" value="Go!" />
    	</form>
    </div>
  </body>
</html>